
package org.lq.sm.view.vip;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.EmptyBorder;
import javax.swing.border.TitledBorder;

import com.eltima.components.ui.DatePicker;

public class V_vipAdd extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					V_vipAdd frame = new V_vipAdd();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public V_vipAdd() {
		setTitle("会员资料维护");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 315, 438);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);

		JPanel panel = new JPanel();
		panel.setBounds(5, 5, 289, 356);
		panel.setBorder(new TitledBorder(null, "\u4F1A\u5458\u8D44\u6599", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		contentPane.add(panel);
		panel.setLayout(null);

		JLabel lblNewLabel = new JLabel("卡号：");
		lblNewLabel.setBounds(34, 32, 45, 15);
		panel.add(lblNewLabel);

		JTextField text_card = new JTextField();
		text_card.setBounds(78, 29, 118, 21);
		panel.add(text_card);
		text_card.setColumns(10);

		JCheckBox chckbxNewCheckBox_auto = new JCheckBox("自动");
		chckbxNewCheckBox_auto.setBounds(202, 28, 60, 23);
		panel.add(chckbxNewCheckBox_auto);

		JLabel lblNewLabel_1 = new JLabel("姓名：");
		lblNewLabel_1.setBounds(34, 66, 54, 15);
		panel.add(lblNewLabel_1);

		JTextField text_name = new JTextField();
		text_name.setBounds(78, 63, 93, 21);
		panel.add(text_name);
		text_name.setColumns(10);

		JLabel lblNewLabel_2 = new JLabel("手机：");
		lblNewLabel_2.setBounds(34, 104, 54, 15);
		panel.add(lblNewLabel_2);

		JTextField text_phone = new JTextField();
		text_phone.setBounds(78, 101, 150, 21);
		panel.add(text_phone);
		text_phone.setColumns(10);

		JLabel lblNewLabel_3 = new JLabel("生日：");
		lblNewLabel_3.setBounds(34, 139, 54, 15);
		panel.add(lblNewLabel_3);
		
		//时间插件
		DatePicker dp_brithday = new DatePicker();
		dp_brithday.setBounds(78, 139, 150, 21);
		panel.add(dp_brithday);

		JLabel lblNewLabel_4 = new JLabel("类别：");
		lblNewLabel_4.setBounds(34, 178, 54, 15);
		panel.add(lblNewLabel_4);

		JComboBox comboBox_level = new JComboBox();
		comboBox_level.setBounds(78, 174, 93, 23);
		panel.add(comboBox_level);

		JLabel lblNewLabel_5 = new JLabel("会员折扣：");
		lblNewLabel_5.setBounds(10, 214, 67, 15);
		panel.add(lblNewLabel_5);

		JTextField text_discount = new JTextField();
		text_discount.setBounds(78, 211, 66, 21);
		panel.add(text_discount);
		text_discount.setColumns(10);

		JLabel lblNewLabel_6 = new JLabel("积分：");
		lblNewLabel_6.setBounds(154, 214, 54, 15);
		panel.add(lblNewLabel_6);

		JTextField text_integral = new JTextField();
		text_integral.setBounds(202, 211, 60, 21);
		text_integral.setText("");
		panel.add(text_integral);
		text_integral.setColumns(10);

		JLabel lblNewLabel_7 = new JLabel("开卡日期：");
		lblNewLabel_7.setBounds(10, 247, 64, 15);
		panel.add(lblNewLabel_7);

		//时间插件
		DatePicker dp_cadedata = new DatePicker();
		dp_cadedata.setBounds(78, 241, 150, 21);
		panel.add(dp_cadedata);
		
		JLabel lblNewLabel_8 = new JLabel("地址：");
		lblNewLabel_8.setBounds(34, 285, 54, 15);
		panel.add(lblNewLabel_8);
		
		JTextField text_address = new JTextField();
		text_address.setBounds(78, 282, 150, 21);
		panel.add(text_address);
		text_address.setColumns(10);
		
		JLabel lblNewLabel_9 = new JLabel("备注：");
		lblNewLabel_9.setBounds(34, 317, 54, 15);
		panel.add(lblNewLabel_9);
		
		JTextField text_desc = new JTextField();
		text_desc.setBounds(78, 314, 150, 21);
		panel.add(text_desc);
		text_desc.setColumns(10);
		
		JCheckBox chckbxNewCheckBox_save = new JCheckBox("保存新增");
		chckbxNewCheckBox_save.setBounds(5, 367, 103, 23);
		contentPane.add(chckbxNewCheckBox_save);
		
		JButton btn_save = new JButton("保存");
		btn_save.setIcon(null);
		btn_save.setBounds(114, 367, 82, 23);
		contentPane.add(btn_save);
		
		JButton btn_off = new JButton("取消");
		btn_off.setIcon(null);
		btn_off.setBounds(206, 367, 82, 23);
		contentPane.add(btn_off);
	}
}

